package com.tengju.user.infrastructure.repository.convert;

import com.tengju.user.domain.model.user.DominationMemberNote;
import com.tengju.user.domain.model.user.UserIdCode;
import com.tengju.user.infrastructure.persistence.mybatis.dataobject.DominationMemberNoteDO;

public class DominationMemberNoteConvert {

    public static DominationMemberNote convert(DominationMemberNoteDO dominationMemberNoteDO) {

        return new DominationMemberNote(new UserIdCode(dominationMemberNoteDO.getLeaderId()),
                new UserIdCode(dominationMemberNoteDO.getSubordinateId()),
                dominationMemberNoteDO.getRemark());

    }
}